/*
 * Copyright 2011 The Rusted Roof, LLC.
 *
 *    Licensed under the Apache License, Version 2.0 (the "License");
 *    you may not use this file except in compliance with the License.
 *    You may obtain a copy of the License at
 *
 *        http://www.apache.org/licenses/LICENSE-2.0
 *
 *    Unless required by applicable law or agreed to in writing, software
 *    distributed under the License is distributed on an "AS IS" BASIS,
 *    WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 *    See the License for the specific language governing permissions and
 *    limitations under the License.
 */

package org.proteusframework.sample.plugin.registrar;

import org.proteusframework.api.base.AbstractVersionCollection;
import org.proteusframework.api.model.IVersion;
import org.proteusframework.api.model.IVersionCollection;
import org.proteusframework.api.model.Version;
import org.proteusframework.api.model.VersionedInterface;
import org.proteusframework.sample.plugin.interfaces.ISampleVersion1;
import org.proteusframework.sample.plugin.interfaces.ISampleVersion2;

/**
 * @author Tacoma Four
 */
public final class VersionCollection extends AbstractVersionCollection
{
    public static final IVersion VERSION_1_0_0 = new Version(1, 0);
    public static final IVersion VERSION_2_0_0 = new Version(2, 0);

    private static final VersionCollection instance = new VersionCollection();

    public static IVersionCollection getInstance()
    {
        return instance;
    }

    private VersionCollection()
    {
        super(new VersionedInterface(VERSION_1_0_0, ISampleVersion1.class),
                new VersionedInterface(VERSION_2_0_0, ISampleVersion2.class));
    }
}
